<?php
namespace Common\Model;
use Think\Model;
/**
 * du 2025.2.7
 * 用户管理
 */

class TvGameClueAdminModel extends Model{
    public function set_data($data){
        if(!$data){
            return false;
        }
        $data['update_time'] = date('Y-m-d H:i:s', time());
        $res = $this->save($data);
        return $res;
    }

    public function get_data($id){
        $data['id'] = $id;
        $data['refresh_time'] = date('Y-m-d H:i:s', time());
        $this->data($data)->save();
        return $this->where(['id' => $id])->find();
    }

    public function get_data_list(){
        return $this->select();
    }
}